<script>
	export default {
		onLaunch: function() {
			console.log('App启动')
			uni.request({
				url:this.websiteUrl+"/api/isreset",
				method:"POST",
				data:{
					name:'weixin'
				},
				header:{
					'content-type': 'application/x-www-form-urlencoded'
				},
				success:function(resp){
					if(resp.data.code == 0){
						if(resp.data.data){
							console.log("清除缓存")
							uni.clearStorage();
						}
					}
				}
			})
		},
		onShow: function() {
			console.log('App 显示')
		},
		onHide: function() {
			console.log('App 隐藏')
		}
	}
</script>

<style>
	/*每个页面公共css */
	@import "static/font-awesome-4.7.0/css/font-awesome.css";
	@import "colorui/main.css";
	@import "colorui/icon.css";

	page {
		background-color: #2b2e35;
	}

	text {
		display: block;
	}
</style>
